{extend name="public:base" /}

{block name="left_nav"}
<div class="lb-nav">
    <a href="javascript: void(0)" class="lbn-btn active">基本设置</a>
    <a href="{:url('editPassword')}" class="lbn-btn">修改密码</a>
</div>
{/block}

{block name="main"}
<div class="mid-box" style="width: calc(100% - 300px);">

    <div class="mb-title">
        <div class="mbt-bt">基本设置</div>
        <div class="divclear"></div>
    </div>

    <form class="mb-from">

        <div class="mbf-bd">
            <div class="mbfb-box">
                <div class="mbfbb-zd">上传头像：</div>
                <div class="mbfbb-img">
                    <input type="file" id="avatar_file" accept="image/*" style="display: none">
                    <input type="hidden" class="hidden_value" name="avatar" id="avatar_id" value="{$info['avatar']|default=''}"/>
                    <img id="avatar" src="{$info.avatar_path ? $info.avatar_path : '__STATIC__/index/images/img_sctp.png'}" onclick="uploadImage('avatar_file', 'avatar_id', 'avatar', false, 1)"/>
                </div>
                <div class="divclear"></div>
            </div>
            <div class="divclear"></div>
            <div class="mbfb-box">
                <div class="mbfbb-zd">昵称：</div>
                <input type="text" placeholder="请输入昵称" name="username" value="{$info.username}" class="mbfbb-input">
                <div class="divclear"></div>
            </div>
            <div class="divclear"></div>
        </div>

        <div class="mbf-btn">
            <button class="mbfb-an ajax-post">保存</button>
        </div>
    </form>

    {include file="public:footer" /}
</div>

{/block}